
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">

  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
  <meta name="screen-orientation" content="portrait" />
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  <meta name="full-screen" content="yes">
  <meta name="x5-fullscreen" content="true">

  <title>21213</title>
</head>

<body>
  <div id="app">
      <button  id="snap">拍照</button>
  </div>
  <!-- built files will be auto injected -->
  <script>
    document.getElementById("snap").addEventListener("click", function(context,video) {
      console.log(context,video)
context.drawImage(video, 0, 0, 640, 480);
});
  </script>

</body>

</html>

<style>
 
      
</style>